import request from '@/utils/request'

// 查询销售订单变更记录列表
export function listChangeRecord(query) {
  return request({
    url: '/xs/changeRecord/list',
    method: 'get',
    params: query
  })
}

// 查询销售订单变更记录详细
export function getChangeRecord(recordId) {
  return request({
    url: '/xs/changeRecord/' + recordId,
    method: 'get'
  })
}

// 新增销售订单变更记录
export function addChangeRecord(data) {
  return request({
    url: '/xs/changeRecord',
    method: 'post',
    data: data
  })
}

// 修改销售订单变更记录
export function updateChangeRecord(data) {
  return request({
    url: '/xs/changeRecord',
    method: 'put',
    data: data
  })
}

// 删除销售订单变更记录
export function delChangeRecord(recordId) {
  return request({
    url: '/xs/changeRecord/' + recordId,
    method: 'delete'
  })
}
